#ifndef DRAWCIRCLE_H
#define DRAWCIRCLE_H

#define DEBUG

#include <QWidget>
#include <QColor>
#include <QKeyEvent>

class DrawCircle : public QWidget
{
//    Q_OBJECT
public:
    DrawCircle(QWidget* parent= 0);
    ~DrawCircle();

    void setCircle(int x, int y,
                   int radius, int lineWidth, QColor color);
    void setRing(bool);
    void endThis();

private:
    int myX;
    int myY;
    int myRadius;
    int myWidth;
    QColor myColor;
    bool ringFlag;

//signals:
//    void escapeKeyPressed();

protected:
    void keyPressEvent(QKeyEvent *keyEvent);
    void paintEvent(QPaintEvent *pEvent);
    void drawACircle();
};

#endif // DRAWCIRCLE_H
